package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;import com.lanchetech.entity.FarmTask;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface FarmTaskMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FarmTask record);

    int insertSelective(FarmTask record);

    FarmTask selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FarmTask record);

    int updateByPrimaryKey(FarmTask record);

    List<FarmTask> findAllPage(PageReq req);

    int updateStockById(@Param("updatedStock") Integer updatedStock, @Param("id") Long id);

    FarmTask findOneByKind(@Param("kind") Long kind);
}